package com.design_pattern.abstractFactory;

import org.junit.jupiter.api.Test;


public class Client {
    @Test
    public void call(){
        IFactory serverAFactory = new ServerAFactory();
        Service a = serverAFactory.instance();
        a.show();
        IFactory serverBFactory = new ServerBFactory();
        Service b = serverBFactory.instance();
        b.show();
    }
}
